package com.example.my_project_test.mybatis.controller;

import com.example.my_project_test.mybatis.entity.Person;
import com.example.my_project_test.mybatis.service.PersonService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author cenjinxing
 * @Description: 该类的功能描述
 * @date: 2022/5/11 09:49
 */
@RestController
public class PersonController {
    @Resource
   private PersonService personService;

    @GetMapping("/get")
    public Person getPerson(String id){
        return personService.getPerson(id);
    }
}
